/*
 * frsky.cpp
 *
 * Created: 01.05.2012 15:24:07
 *  Author: maxim.karban@gmail.com
 */ 

#include <stdint.h>
#include "UART.h"

uint8_t frskybuf[10];
uint8_t frskycnt = 0;


void printFrSkyValue(short val, unsigned char id){
  frskycnt = 0;  
  frskybuf[frskycnt++] = 0x5E;//header
  frskybuf[frskycnt++] = id;//accel y
  frskybuf[frskycnt++] = val;
  frskybuf[frskycnt++] = val >> 8;
  PrintBuf(frskybuf, frskycnt);
}

